<template>
    <div>
        <div class="high-privileges">
            <div class="img_box"><img :src="Url+article.image"></div>
            <div class="box-r4">
                <div class="p1"  v-html="article.content"></div>
            </div>
            <a class="acc" @click="showtoast()">去{{article.title}}</a>
        </div>
    </div>
</template>

<script>
    export default {
        name: "",
        data(){
          return {
              noticeid:"",
              article:"",
              title:''
          }
        },
        mounted(){
            this.noticeid=this.$route.params.id;
            this.getArticle();
            document.title = this.$route.query.pagetitle;
        },
        methods:{
            getArticle(){
                var that=this;
                that.request1.post1({
                    url: that.Url + "api/article/detail",
                    params: {articleid:that.noticeid},
                    success: function (res) {
                        console.log(res)
                        if (res.data.code == 1) {
                            that.article=res.data.data.article;
                        } else {
                            alert(res.data.msg)
                        }
                    },
                    fail: function (error) {
                        alert(error.data.msg)
                    }
                })
            },
            showtoast(){
                this.$router.push({ path:'/myzoe/kefu'})
            }
        }
    }
</script>

<style scoped>
    .high-privileges .img_box {
        margin: 10px 10px 0;
    }
    .high-privileges img {
        display: block;
        width: 100%;
    }
    .box-r4, .red_btn {
        border-radius: 4px;
    }
    .box-r4 {
        display: block;
        background: #fff;
        margin: 7px 10px 0;
        padding: 0 15px;
        overflow: hidden;
    }
    .high-privileges .p1 {
        display: block;
        margin: 20px 0;
    }
    .high-privileges p b {
        font-size: 15px;
        color: #fc5d4d;
        display: block;
        margin-bottom: 5px;
    }
    .high-privileges p span.s1 {
        font-size: 13px;
        color: #333;
        display: block;
        line-height: 22px;
    }
    .high-privileges a.acc {
        display: block;
        width: 90%;
        margin: 30px 5%;
        background: #fc5d4d;
        color: #fff;
        font-size: 14px;
        text-align: center;
        height: 40px;
        line-height: 40px;
        border-radius: 4px;
        box-shadow: 0 5px 10px #f6a59f;
    }
</style>